package interfazgrafikoak;

import javax.swing.*;
import java.awt.*;

public class Aukerak extends JFrame {
	
	  JPanel jPanel1 = new JPanel();
	  JLabel jLabel1 = new JLabel();
	  JRadioButton jRadioButton1 = new JRadioButton();
	  JRadioButton jRadioButton2 = new JRadioButton();
	  ButtonGroup g = new ButtonGroup();
	  JLabel jLabel2 = new JLabel();
	  JCheckBox jCheckBox1 = new JCheckBox();
	  JCheckBox jCheckBox2 = new JCheckBox(); //Besteak eraiki
	  
	  public Aukerak()  {
		jLabel1.setText("Sexua:");
	    jRadioButton1.setText("Gizona"); jRadioButton1.setSelected(true);
	    jRadioButton2.setText("Emakumea"); 
	    jLabel2.setText("Aukeratu zure ekintza gogokoenak (bat baino gehiago izan daitezke)");
	    jCheckBox1.setText("Musika entzun"); jCheckBox1.setSelected(true);
	    jCheckBox2.setText("Dantzatu");//Besteenak testuak gehitu
	    jPanel1.setLayout(new FlowLayout());
		jPanel1.add(jLabel1, null);
	    jPanel1.add(jRadioButton2, null);
	    jPanel1.add(jRadioButton1, null);
	    jPanel1.add(jLabel2, null);
	    jPanel1.add(jCheckBox1, null); //Beste JCheckBox-ak gehitu
		g.add(jRadioButton1);
	    g.add(jRadioButton2);
	    this.getContentPane().add(jPanel1, null);
	    this.setVisible(true);
	  }
	  
	  public static void main(String[] args){
		  Aukerak _aukerak = new Aukerak();
		  _aukerak.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		  
	  }

}
